//
//  CAnAlgSwimSumData.h
//
//
//  Created by  on 2024/9/3.
// Total swim result data for swim workouts(游泳锻炼总的游泳结果数据)

#import <Foundation/Foundation.h>
#import "CANalgProtocal.h"

NS_ASSUME_NONNULL_BEGIN

@interface CAnAlgSwimSumData : NSObject<CANalgProtocal>
@property(assign, nonatomic, readonly)uint8_t cmdByte;

@property(assign, nonatomic, readonly)NSUInteger timeStamp;// Timestamp, accurate to day

@property(assign, nonatomic, readonly) uint16_t  totalStrokes; //Total swimming strokes for all laps(总划水次数，所有圈数的累计游泳划水次数)

//The accumulated swimming time since the last reset, excluding turns, stops and pauses. The unit is
// seconds, range 0-65535(自上次重置以来的累计游泳时间，此时间不包括转身、停止和暂停。单位为秒，范围 0-65535)
@property(assign, nonatomic, readonly) uint16_t  swimDuration;

// unit:meter
@property(assign, nonatomic, readonly) uint16_t totalSwimmingDistance;

@property(assign, nonatomic, readonly) uint16_t pace;// Swimming pace, unit: min/Km*10(游泳配速，单位 min/Km*10)

@property(assign, nonatomic, readonly) uint8_t swimmingLaps; // Number of laps since last reset

@property(assign, nonatomic, readonly) uint16_t swolf;// Average swimming efficiency, the average swimming efficiency of all laps (SWOLF). SWOLF is the sum of the lap time (in seconds) and the number of strokes per lap.

- (instancetype)initWithData:(NSData *)data;
-(NSNumber *)dataTimeStamp;
@end

NS_ASSUME_NONNULL_END
